home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 18
/
CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso
/
CUCD
/
Magazine
/
C_Tutorial
/
Part-6
/
asl3
/
gui.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-10-27
|
544b
|
27 lines
#include "gui.h"
#include "bitmap.h"
#include "drawwin.h"
#include "gadgets.h"
#include "menu.h"
#include "screen.h"
#include "toolwin.h"
#include "visual.h"
int openGUI(UBYTE depth, UWORD width, UWORD height, ULONG displayid)
{
return openScreen(depth, width, height, displayid) &&
createBitmap() && createVisual() &&
createMenuStrip() && createGadgets() &&
openToolWin() && openDrawWin();
}
void closeGUI()
{
closeDrawWin();
closeToolWin();
freeGadgets();
freeMenuStrip();
freeVisual();
freeBitmap();
closeScreen();
}